package com.dragon.modules.yuegou.service.impl.member;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dragon.modules.yuegou.entity.member.PtTurntablePageEntity;
import com.dragon.modules.yuegou.mapper.member.PtTurntablePageMapper;
import com.dragon.modules.yuegou.model.member.PtTurntablePage;
import com.dragon.modules.yuegou.query.member.PtTurntablePageQuery;
import com.dragon.modules.yuegou.service.member.PtTurntablePageService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.stream.Collectors;

/**
 * 大转盘显示位置页面表 服务实现
 *
 * @author pbuilder generated
 * @version 2.0
 * @date 2021-12-15 14:02:44
 */
@Service("memPtTurntablePageService")
public class PtTurntablePageServiceImpl
        extends ServiceImpl<PtTurntablePageMapper, PtTurntablePageEntity>
        implements PtTurntablePageService {

    @Override
    public List<PtTurntablePage> containsPage(PtTurntablePageQuery ptTurntablePageQuery) {
        return this.list(ptTurntablePageQuery.toQueryWrapper()).stream().map(PtTurntablePage::new).collect(Collectors.toList());
    }
}